package com.ruoyi.sale.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 支付订单对象 sale_payorder
 * 
 * @author ruoyi
 * @date 2022-09-02
 */
public class SalePayorder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Integer id;

    /** 商品信息 */
    @Excel(name = "商品信息")
    private String productName;

    /** 订单号 */
    @Excel(name = "订单号")
    private Long orderNo;

    /** 总金额 */
    @Excel(name = "总金额")
    private Long amount;

    /** 账户名 */
    @Excel(name = "账户名")
    private String accountName;

    /** 操作人 */
    @Excel(name = "操作人")
    private Long userId;

    /** 优惠金额 */
    @Excel(name = "优惠金额")
    private Long reduced;

    /** 定金 */
    @Excel(name = "定金")
    private Long earnest;

    /** 账户id */
    @Excel(name = "账户id")
    private Long accountId;

    /** 待支付 */
    @Excel(name = "待支付")
    private Long pay;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setOrderNo(Long orderNo) 
    {
        this.orderNo = orderNo;
    }

    public Long getOrderNo() 
    {
        return orderNo;
    }
    public void setAmount(Long amount) 
    {
        this.amount = amount;
    }

    public Long getAmount() 
    {
        return amount;
    }
    public void setAccountName(String accountName) 
    {
        this.accountName = accountName;
    }

    public String getAccountName() 
    {
        return accountName;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setReduced(Long reduced) 
    {
        this.reduced = reduced;
    }

    public Long getReduced() 
    {
        return reduced;
    }
    public void setEarnest(Long earnest) 
    {
        this.earnest = earnest;
    }

    public Long getEarnest() 
    {
        return earnest;
    }
    public void setAccountId(Long accountId) 
    {
        this.accountId = accountId;
    }

    public Long getAccountId() 
    {
        return accountId;
    }
    public void setPay(Long pay) 
    {
        this.pay = pay;
    }

    public Long getPay() 
    {
        return pay;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productName", getProductName())
            .append("orderNo", getOrderNo())
            .append("amount", getAmount())
            .append("accountName", getAccountName())
            .append("userId", getUserId())
            .append("createTime", getCreateTime())
            .append("reduced", getReduced())
            .append("earnest", getEarnest())
            .append("accountId", getAccountId())
            .append("pay", getPay())
            .toString();
    }
}
